package com.solution.decorator;

import org.displaytag.decorator.TableDecorator;

import com.solution.model.UserInfo;

public class UserDecorator extends TableDecorator{

	public String getActionEdit() {
		UserInfo userInfo = (UserInfo)getCurrentRowObject();
		String userTypeId = userInfo.getId()+"";
		return "<a href=\"javascript:fnEditViewUserDetails('"+ userTypeId + "','Edit')\">Edit</a>"; 
	}
	
	public String getActionView() {
		UserInfo userInfo = (UserInfo)getCurrentRowObject();
		String userTypeId = userInfo.getId()+"";
		return "<a href=\"javascript:fnEditViewUserDetails('"+ userTypeId + "','View')\">View</a>"; 
	}
}
